var $ = jQuery.noConflict();

$(document).ready(function() {

$.fn.easytabs = function(){ 
    //Default Action
    $(this).find(".easytabs_content").hide(); //Hide all content
    $(this).find("ul.easytabs li:first").addClass("active").show(); //Activate first tab
    $(this).find(".easytabs_content:first").show(); //Show first tab content
      
    //On Click Event
    $("ul.easytabs li").click(function() {
        $(this).parent().parent().find("ul.easytabs li").removeClass("active"); //Remove any "active" class
        $(this).addClass("active"); //Add "active" class to selected tab
        $(this).parent().parent().find(".easytabs_content").hide(); //Hide all tab content
        var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
        $(activeTab).show(); 
        return false;
    });

};//end function

$("div[class^='easytabs']").easytabs(); //Run function on any div with class name of "easytabs"

});
